// 登录页面
import Authorize from '@/components/authorize/authorize'
// 入口
import Index from '@/components/index/index'
import Service from '@/components/index/service'
import Search from '@/components/index/search'
import Detail from '@/components/detail/detail'
import Mine from '@/components/index/mine'
// 个人资料管理中心
import Manage from '@/components/profile/manage'
// 审核状态跳转页面
import Assessment from '@/components/assessment/assessment'
import gg from '@/components/assessment/false'
// 我的额度
import Limit from '@/components/limit/limit'
// 订单，指的是全额支付的
import Order from '@/components/mine/order'
import OrderDetail from '@/components/mine/order-detail'
// 我当前的丰期
import Bill from '@/components/mine/bill'
import BillDetail from '@/components/mine/bill-detail'
// 丰期记录
import Installment from '@/components/mine/installment-record'
import InstallmentDetail from '@/components/mine/installment-record-detail'
// 丰期合同
import Contract from '@/components/mine/contract'
// 还款计划
import RepayPlan from '@/components/mine/repay-plan'
// 还款记录
import RepayRecord from '@/components/mine/repay-record'
// 提前还款列表
import AheadRepayList from '@/components/mine/ahead-repay-list'
// 提前还款详情
import AheadRepayDetail from '@/components/mine/ahead-repay-detail'
// 基本页
import Help from '@/components/mine/help'
import News from '@/components/mine/news'
import NewsDetail from '@/components/mine/news-detail'
import More from '@/components/more/more'
import About from '@/components/more/about'
import Feedback from '@/components/more/feedback'

const home = [
  // 登录
  {
    path: '/authorize',
    name: 'Authorize',
    component: Authorize
  },
  // 首页
  {
    path: '/index',
    name: 'Index',
    component: Index
  },
  // 首页
  {
    path: '/',
    name: 'Index',
    component: Index
  },
  // 服务
  {
    path: '/service',
    name: 'Service',
    component: Service
  },
  // 我的
  {
    path: '/mine',
    name: 'Mine',
    component: Mine
  },
  // 搜索
  {
    path: '/search',
    name: 'Search',
    component: Search
  },
  // 店铺详情， 传入参数 店铺ID
  {
    path: '/detail/:id',
    name: 'Detail',
    component: Detail
  },
  // 认证中心
  {
    path: '/profile/manage',
    name: 'Manage',
    component: Manage
  },
  // 审核状态
  {
    path: '/assessment',
    name: 'Assessment',
    component: Assessment
  },
  // 芝麻失败
  {
    path: '/false',
    name: 'gg',
    component: gg
  },
  // 我的额度
  {
    path: '/limit',
    name: 'Limit',
    component: Limit
  },
  // 我的订单
  {
    path: '/mine/order',
    name: 'Order',
    component: Order
  },
  // 我的订单详情
  {
    path: '/mine/order/:id',
    name: 'OrderDetail',
    component: OrderDetail
  },
  // 我的丰期记录
  {
    path: '/mine/Installment',
    name: 'Installment',
    component: Installment
  },
  // 我的丰期记录详情
  {
    path: '/mine/Installment/:id',
    name: 'InstallmentDetail',
    component: InstallmentDetail
  },
  // 我的丰期合同详情
  {
    path: '/mine/Installment/contract/:id',
    name: 'Contract',
    component: Contract
  },
  // 还款计划
  {
    path: '/mine/Installment/plan/:id',
    name: 'RepayPlan',
    component: RepayPlan
  },
  // 我的丰期
  {
    path: '/mine/bill',
    name: 'Bill',
    component: Bill
  },
  // 我的丰期详情
  {
    path: '/mine/bill/detail/:id',
    name: 'BillDetail',
    component: BillDetail
  },
  // 还款记录
  {
    path: '/mine/repay/record/:id',
    name: 'RepayRecord',
    component: RepayRecord
  },
  // 提前还款 列表 含多个店铺
  {
    path: '/mine/aheadrepay',
    name: 'AheadRepayList',
    component: AheadRepayList
  },
  // 提前还款 详情
  {
    path: '/mine/aheadrepay/:id',
    name: 'AheadRepayDetail',
    component: AheadRepayDetail
  },
  // 帮助
  {
    path: '/mine/help',
    name: 'Help',
    component: Help
  },
  // 消息
  {
    path: '/mine/news',
    name: 'News',
    component: News
  },
  // 消息详情， 传入参数 消息ID
  {
    path: '/mine/news/:id',
    name: 'NewsDetail',
    component: NewsDetail
  },
  // 更多设置
  {
    path: '/more',
    name: 'More',
    component: More
  },
  // 关于我们
  {
    path: '/more/about',
    name: 'About',
    component: About
  },
  // 意见反馈
  {
    path: '/more/feedback',
    name: 'Feedback',
    component: Feedback
  }
]

export default home
